
#include "Circle.h"

/**
 * 需要添加作用于，代表setR方法，是属于Circle2的
 */
void Circle::setR(double r) {
	m_r = r;
}

double Circle::getR() {
	return m_r;
}

double Circle::getArea() {
	return 3.14 * m_r * m_r;
}

double Circle::getGirth() {
	return 2 * 3.14 * m_r;
}
